package cn.acewill.yxd.yunxundian.ui.schedule;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import cn.acewill.yxd.yunxundian.BaseActivity;
import cn.acewill.yxd.yunxundian.R;

/**
 * Created by AAA on 2017/4/18.
 */

public class ScheduleRestActivity extends BaseActivity implements View.OnClickListener{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setTitleBar("假期");
        setContentView(R.layout.restinfodetile);
        super.onCreate(savedInstanceState);
        initView();
    }

    public void initView(){
        String time=getIntent().getStringExtra("time");
        String type=getIntent().getStringExtra("type");
        Button sureBtn = (Button) findViewById(R.id.sureBtn);
        sureBtn.setText("删除");
        sureBtn.setOnClickListener(this);
        TextView restTime = (TextView) findViewById(R.id.restTime);
        restTime.setText(time);
        TextView restType = (TextView) findViewById(R.id.restType);
        restType.setText(type);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.sureBtn:

                break;
        }
    }
}
